﻿using System;
using System.Web.UI.WebControls;
using NopSolutions.NopCommerce.BusinessLogic.Infrastructure;
using NopSolutions.NopCommerce.BusinessLogic.Services;

namespace NopSolutions.NopCommerce.Controls
{
    public class DeleteButton : Button
    {
        protected override void OnInit(EventArgs e) {
            base.OnInit(e);

            OnClientClick = "return confirm('" + IoC.Resolve<ILocalizationService>().GetLocaleResourceString("Admin.Common.AreYouSure") + "')";
        }
    }
}
